<template>
  <div>
    <div class="user-info-wrapper">
      <div class="info-wrapper">
        <span class="name">{{ userInfo.nickname }}</span>
        <span class="info">余额<em class="ehance-text">￥{{ userInfo.balance }}</em></span>
      </div>
      <div class="info-button-wrapper">
        <router-link to="wallet/withdrawApply" class="user-btn btn-yellow">提现</router-link>
      </div>
    </div>
    <div class="items-wrapper">
      <van-cell-group>
        <van-cell to="/wallet/balance" icon="gold-coin" title="我的余额" isLink>
          <template>
            <span>余额</span>
            <span class="van-cell__value--enhance">￥{{ userInfo.balance }}</span>
          </template>
        </van-cell>
        <van-cell icon="points" title="我的积分" isLink>{{ userInfo.gold }}</van-cell>
        <van-cell to="/wallet/withdraw" icon="cash-back-record" title="提现记录" value="查看历史提现记录" isLink/>
      </van-cell-group>
    </div>
  </div>
</template>

<script>
import qs from 'qs'

import { mapGetters } from 'vuex'

export default {
  name: 'Wallet',
  data () {
    return {
    }
  },
  created () {

  },
  computed: {
    ...mapGetters([
      'userInfo'
    ])
  },
  methods: {
  
  }
}

</script>
